<?php

namespace Acme\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\StoreBundle\Entity\Customer
 */
class Customer
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @OneToOne(targetEntity="Cart", mappedBy="customer")
     */
    private $cart;
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set cart
     *
     * @param Acme\StoreBundle\Entity\Cart $cart
     */
    public function setCart(\Acme\StoreBundle\Entity\Cart $cart)
    {
        $this->cart = $cart;
    }

    /**
     * Get cart
     *
     * @return Acme\StoreBundle\Entity\Cart 
     */
    public function getCart()
    {
        return $this->cart;
    }
}